<div class="weadmin-body">
    <form class="layui-form" data-form='{:request()->url()}'>

        <div class="layui-form-item" pane>
            <label for="title" class="layui-form-label">
                <span class="we-red">*</span>标题
            </label>
            <div class="layui-input-block">
                <input type="text" id="title" name="title" required="" lay-verify="required"
                       value="{$vo.title|default=''}" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" pane>
            <label for="title" class="layui-form-label">
                <span class="we-red">*</span>内容
            </label>
            <div class="layui-input-block">
                <input type="text" id="content" name="content" required="" lay-verify="required"
                       value="{$vo.content|default=''}" class="layui-input">
            </div>
        </div>





        <div class="layui-form-item layui-col-xs10 layui-col-xs-offset2">
            {if isset($vo.id)}<input type="hidden" name="id" value="{$vo.id}">

            {/if}
            <button class="layui-btn" lay-submit="">确定</button>
        </div>
    </form>
</div>

<script>
    layui.use('form',function () {
        layui.form.render();
    })
</script>
